home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / util / misc / WindowPatch.lha / WindowPatch.txt < prev   
Text File  |  1999-01-08  |  4KB  |  157 lines

  1.  
  2. -WindowPatch- v0.2 (07.01.99)
  3.  
  4.  
  5. Introduction
  6. ************
  7.  
  8. Patches OpenWindow(),OpenWindowTagList(),ActivateWindow()
  9. and disables window activation when opening window
  10. or someone tries to activate it.
  11. Also fix for WA_Width,WA_Height to use with VisualPrefs
  12. if window borders are wider than originals.
  13.  
  14. Distribution
  15. ************
  16.  
  17.    Copyright (C) 1999 Juha 'Asa' Pinola
  18.  
  19.    WindowPatch  is  available  as  freeware.   That  is,  it  may be freely
  20. distributed  in  unmodified  form with no changes what so ever, but you may
  21. not  charge  more than a nominal fee covering distribution costs.  However,
  22. donations are welcome.
  23.  
  24.    If  you use this software in a commercial or shareware software product,
  25. please   consider  giving  the  author  and  preferably  each  one  of  the
  26. contributors an original or registered version of your work.
  27.  
  28.    If you wish to distribute this software with a hardware product, contact
  29. the  author.   Distribution  of  WindowPatch  with hardware products is not
  30. free.
  31.  
  32.    THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
  33. EXPRESS  OR  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  34. WARRANTIES  OF  MERCHANTABILITY  AND  FITNESS  FOR A PARTICULAR PURPOSE ARE
  35. DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
  36. DIRECT,  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  37. (INCLUDING,  BUT  NOT  LIMITED  TO,  PROCUREMENT  OF  SUBSTITUTE  GOODS  OR
  38. SERVICES;  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  39. CAUSED  AND  ON  ANY  THEORY  OF  LIABILITY,  WHETHER  IN  CONTRACT, STRICT
  40. LIABILITY,  OR  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  41. OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  42. DAMAGE.
  43.  
  44. ****************************************
  45.  
  46.  
  47. Installing
  48. ----------
  49.  
  50. Just copy WindowPatch to c:.
  51. And WINDOWPATCH_PATTERNS to s: or where ever you like.
  52.  
  53. Add a line "run >nil: c:WindowPatch s:WINDOWPATCH_PATTERNS >nil:"
  54. to s:startup-sequence
  55.  
  56. PatchControl or SetMan recommended !
  57.  
  58. Works fine on any 68k CPUs.
  59.  
  60. (if doesn't work with KS2.x or lower, please let me know)
  61.  
  62. ****************************************
  63.  
  64.  
  65. The Author
  66. ----------
  67.  
  68.    The author can be reached at the following addresses:
  69.  
  70. Electronic mail
  71.      jpinola@cs.joensuu.fi
  72.  
  73. World-Wide Web
  74.      http://cs.joensuu.fi/~jpinola
  75.  
  76. IRC: Asa/#amigafin/#amycoders
  77.  
  78.  
  79. ****************************************
  80.  
  81.  
  82. Example PATTERN files:
  83.  
  84. --- clip ---
  85. # disable activation for these patterns
  86. # Usage: "WP=WIN_PATTERN/K,TP=TASK_PATTERN/K,PA=PATTERN_ACTIVATE/S,PO=PATTERN_OPEN/S,ADD_WIDTH/K/N,ADD_HEIGHT/K/N"
  87. # You must set one of the flags (/S) or nothing will not happen
  88. #
  89. # Disable OpenWindow() activation with AmIRC.
  90. tp "AmIRC" PO
  91. #
  92. # Disables only ActivateWindow() for this pattern
  93. wp "#?Some_Other_Program#?" PA
  94. #
  95. # Fix Width/Height for Delitrackers MPEG Audio status
  96. wp "MPEG Audio status" ADD_WIDTH 6 ADD_HEIGHT 4
  97. --- clip end ---
  98.  
  99.  
  100.  
  101.  
  102. ****************************************
  103.  
  104.  
  105. Command line parameters:
  106.  
  107. "PATTERNS"
  108.  
  109.  
  110. PATTERNS         = To set your PATTERN file
  111.                                    (default name:  WINDOWPATCH_PATTERNS)
  112.  
  113.  
  114. ****************************************
  115.  
  116.  
  117. Pattern file parameters:
  118.  
  119.  
  120. "WP=WIN_PATTERN/K,TP=TASK_PATTERN/K,
  121.  PA=PATTERN_ACTIVATE/S,PO=PATTERN_OPEN/S,ADD_WIDTH/K/N,ADD_HEIGHT/K/N"
  122.  
  123.  
  124. WIN_PATTERN      = Pattern for window name
  125. TASK_PATTERN     = Pattern for task name
  126. PA               = Disable activation with ActiveWindow()
  127. PO               = Disable activation with OpenWindow()
  128. ADD_WIDTH        = Add this number to windows width
  129. ADD_HEIGHT       = Add this number to windows height
  130.  
  131.  
  132. ****************************************
  133.  
  134.  
  135. Notes and bugs:
  136.  
  137. You can remove patches with CTRL-C or sending Break.
  138.  
  139.  
  140. ****************************************
  141.  
  142. History:
  143.  
  144. --------------
  145. v 0.2
  146.  
  147. + Added ADD_WIDTH/K/N,ADD_HEIGHT/K/N
  148. - Commandline parameters changed.
  149.  
  150. --------------
  151. v 0.1
  152.  
  153. + First public version of WindowPatch
  154.  
  155.  
  156.  
  157.